$(function(){
	$( "#from" ).datepicker({
		/*defaultDate: "+1w",*/
		defaultDate : new Date(),
		changeMonth: true,
		numberOfMonths: 2,
		onClose: function( selectedDate ) {
			$( "#to" ).datepicker( "option", {dateFormat: 'yy-mm-dd'}, "minDate", selectedDate );
		}
	});
	
	$( "#to" ).datepicker({
		/*defaultDate: "+1w",*/
		defaultDate : new Date(),
		changeMonth: true,
		numberOfMonths: 2,
		onClose: function( selectedDate ) {
			$( "#from" ).datepicker( "option", {dateFormat: 'yy-mm-dd'}, "maxDate", selectedDate );
		}
	});
	
	$( "#datepicker , #datepicker1" ).datepicker({
		changeMonth: true,
		changeYear: true
	});//日期修改年份
	
});